/* 监管方案页面样式 */
.plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.plan-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.add-plan {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    border: 2px dashed var(--border-color);
    transition: all 0.3s;
}

.add-plan:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* 内容分析页面样式 */
.date-range-picker {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.analysis-overview {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.event-timeline {
    padding: 20px;
}

.timeline-item {
    display: flex;
    gap: 20px;
    padding: 15px 0;
    border-left: 2px solid var(--border-color);
    margin-left: 20px;
}

/* 预警管理页面样式 */
.alert-overview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.alert-stat {
    background: white;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: var(--shadow-sm);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.stat-icon.red { background: var(--danger-color); }
.stat-icon.orange { background: var(--warning-color); }
.stat-icon.blue { background: var(--primary-color); }

/* 事件分析页面样式 */
.event-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.event-metrics {
    display: flex;
    gap: 30px;
    margin: 20px 0;
}

.metric {
    display: flex;
    flex-direction: column;
}

.metric .label {
    color: var(--text-secondary);
    font-size: 14px;
}

.metric .value {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .analysis-overview,
    .alert-overview {
        grid-template-columns: 1fr;
    }
    
    .event-metrics {
        flex-direction: column;
        gap: 15px;
    }
}

/* 额外的样式和动画效果 */

/* 卡片悬停效果 */
.stat-card, .hot-topics, .map-card {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.stat-card:hover, .hot-topics:hover, .map-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
    border: 1px solid rgba(52, 152, 219, 0.1);
}

/* 图标脉动动画 */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.notification i {
    animation: pulse 2s infinite;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid rgba(52, 152, 219, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 顶部导航栏阴影效果 */
.top-bar {
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.3s;
}

/* 面包屑导航样式 */
.breadcrumb {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: var(--text-secondary);
}

.breadcrumb span:first-child {
    color: var(--text-primary);
    font-weight: 500;
}

/* 用户下拉菜单 */
.user {
    position: relative;
    cursor: pointer;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 8px 0;
    min-width: 150px;
    display: none;
    z-index: 1000;
}

.user:hover .user-dropdown {
    display: block;
}

.user-dropdown a {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s;
}

.user-dropdown a:hover {
    background: rgba(52, 152, 219, 0.05);
}

.user-dropdown a i {
    margin-right: 8px;
    font-size: 18px;
    color: var(--text-secondary);
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 标签样式 */
.tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    margin-right: 4px;
}

.tag-positive {
    background-color: rgba(46, 204, 113, 0.1);
    color: var(--success-color);
}

.tag-neutral {
    background-color: rgba(241, 196, 15, 0.1);
    color: var(--warning-color);
}

.tag-negative {
    background-color: rgba(231, 76, 60, 0.1);
    color: var(--danger-color);
}

/* 工具提示 */
[data-tooltip] {
    position: relative;
}

[data-tooltip]:before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 8px;
    background: rgba(0,0,0,0.8);
    color: white;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
}

[data-tooltip]:hover:before {
    opacity: 1;
    visibility: visible;
    bottom: calc(100% + 5px);
}

/* 按钮样式增强 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-success:hover {
    background: #27ae60;
}

.btn-warning {
    background: var(--warning-color);
    color: white;
}

.btn-warning:hover {
    background: #f39c12;
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background: #c0392b;
}

.btn-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 卡片标题样式增强 */
.card-header h3 {
    position: relative;
    padding-left: 12px;
}

.card-header h3:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 18px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* 数据加载中状态 */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* 响应式优化 */
@media (max-width: 1200px) {
    .sidebar {
        width: 220px;
    }
    
    .main-content {
        margin-left: 220px;
        width: calc(100% - 220px);
    }
}

@media (max-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 60px;
    }
    
    .sidebar .logo span,
    .sidebar nav ul li a span {
        display: none;
    }
    
    .main-content {
        margin-left: 60px;
        width: calc(100% - 60px);
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
} 